package com.tgy.constant;

/**
 * 常量类
 */
public class Constant {
    /**
     * 状态码
     */
    public static final Integer OK = 200;
    public static final Integer ERROR = 500;

    /**
     * 账号密码长度限制
     */
    public static final int USERNAME_MIN_LENGTH = 5;
    public static final int USERNAME_MAX_LENGTH = 5;

    /**
     * 状态是否可用
     */
    public static final Integer AVAILABLE_TRUE = 1;
    public static final Integer AVAILABLE_FALSE = 0;

    /**
     * 数字字符串
     */
    public static final String STRING_ONE = "1";



    //密码加密的散列次数
    public static final Integer HASH_ITERATIONS = 2;
    //加密方式
    public static final String HASH_ALGORITHM_NAME = "md5";

    /**
     * 用户默认密码
     */
    public static final String USER_DEFAULT_PWD="123456";

    /**
     * 菜单权限类型
     */
    // 顶级父ID
    public static final String TYPE_TOP = "0";
    public static final String TYPE_MENU = "menu";
    public static final String TYPE_PERMISSION = "permission";


    /**
     * 用户类型
     */
    public static final Integer USER_TYPE_SUPER = 0;    //超级管理员
    public static final Integer USER_TYPE_NORMAL = 1;   //管理员
    public static final Integer USER_TYPE_ORDINARY = 2;   //普通用户

    /**
     * 菜单展开类型
     */
    public static final Integer OPEN_TRUE = 1;      //展开
    public static final Integer OPEN_FALSE = 0;     // 不展开

    /**
     * 请假单状态
     */
    public static final Integer STATE_LEAVE_ZORO=0;
    public static final Integer STATE_LEAVE_ONE=1;
    public static final Integer STATE_LEAVE_TWO=2;
    public static final Integer STATE_LEAVE_THREE=3;

    /**
     * 上传文件类型
     */
    public static final String IMAGE="image";
    public static final String VIDEO="video";
    public static final String DOCUMENTATION="documentation";
    public static final String COMPRESSION="compression";

}